﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ControlYSeguimiento.Domain;
using log4net;
using log4net.Config;
using ControlYSeguimiento.Logging;

namespace ControlYSeguimiento_Web_App
{
    public partial class _Default : System.Web.UI.Page
    {       
        protected void Page_Load(object sender, EventArgs e)
        {
          
          
        }
        protected void DdlLanguage_SelectedIndexChanged(object sender, EventArgs e)
        {
            Facade.Instance.SetCulture(this.DdlLanguage.SelectedValue);
            #region Setup Culture Brochure
            switch (Facade.Instance.GetCulture())
            {
                default:
                case "ES":
                    Logger.Instance.Info(this,"Idioma: ES");
                    ImageBrochure.ImageUrl = "~/Styles/Images/info.png";
                    break;
                case "BR":
                    Logger.Instance.Info(this,"Idioma: BR");                    
                    ImageBrochure.ImageUrl = "~/Styles/Images/info-BR.png";
                    break;
            }
            #endregion
        }
    }
}
